<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=
    , initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
     <!-- <div class="itany"></div> -->
    <div id="itany">
        用户名： <input type="text" v-model="name">
        <br/>
        {{ name }}
    </div>
</body>
<script src="../utils/vue.js"></script>
<script>
    new Vue({
        // el: ".itany",
        el: "#itany",  // vue2.0中不允许将vue实例挂在到<html>或<body>元素，在vue1.0中时可以的
        data:{
            name: "",  //及时没有值，也不能省略，报错,
            age: 12,
            flag:true,
            nums:[12,4,5,6],
            user:{id:2323423,name:"唐伯虎"}

        }
    })
</script>
</html>